import com.yf.springcustomtag.springsupport.Application;
import com.yf.springcustomtag.springsupport.Registry;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName YfTagTest
 * @Description TODO
 * @Author yf
 * @Date 2018/10/14 23:32
 * @Version 1.0
 */
public class YfTagTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        Application application1 = (Application) context.getBean("applicationTest");
        System.out.println(application1.toString());

        Registry registry1 =  (Registry) context.getBean("yfRegistry");
        System.out.println(registry1.toString());

    }
}
